package com.ybzl.common.event;

import org.springframework.context.ApplicationEvent;

/**
 * 事件对象
 */
public class DefaultEvent extends ApplicationEvent {

    /**
     * TOPIC
     */
    private String topic;

    /**
     * 消息
     */
    private String message;

    /**
     * 事件名称
     */
    private final String name;

    public DefaultEvent(Object source, String name) {
        super(source);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
